import React, { Suspense } from "react";
import { RouterProvider, createBrowserRouter } from "react-router-dom";
import router from "./router";
const App = () => {
  return (
    <div>
      <Suspense fallback={<div>Loading...</div>}>
        <RouterProvider router={createBrowserRouter(router)} />
      </Suspense>
    </div>
  );
};

export default App;
